# 作者：SP
# 开发时间：2024/1/8 20:51
filename = 'abc.txt'
with open(filename,encoding='utf-8') as file_object:
    lines = file_object.readlines()
    '''readlines将文件中的全部信息按行存储在列表中'''
    print(lines)
wenben = ''
for line in lines:
    wenben += line.rstrip()
print(wenben)